<?php
/**
* 这里设置用户
*/
class ControllerName extends GetLoad
{
	public $data= array();

	public function index(){
		$this->load("Model/user");
	}
	public function Getname($name2){
	      $this->index();
		$user=new ModelUser();
		$name=$user->Getname();
		$data['name2']=$name2['name'];
		$data['name_id2']=$name2['name_id'];//传给导航栏添加关注用;
		if($name){
			$data['user']="1";
			$data['name']=$name['name'];
			$data['name_id']=$name['name_id'];
			$data['xiaoxi']=$name['xiaoxi']['sixin']+$name['xiaoxi']['noticer']+$name['xiaoxi']['lajixiang']+$name['xiaoxi']['dianzan'];
			$data['noticer']=$name['xiaoxi']['noticer'];
			$data['sixin']=$name['xiaoxi']['sixin'];
			$data['lajixiang']=$name['xiaoxi']['lajixiang'];
			$data['dianzan']=$name['xiaoxi']['dianzan'];
			//$data['touxiang']=$name['touxiang'];
		}else{
			$data['user']="0";

		}
//var_dump($name);
		$this->view("view/daohang1",$data);
	}


}